//index.js
//获取应用实例
const app = getApp()
const http = require("../../models/http")

Page({
  data: {
    value:""
  },
  onLoad: function () {
    http({
      url: `http://192.168.4.20:8000/book`,
      success:res=>{
        console.log(res.data);
        res.data.forEach(res=>{
          res.labels = res.labels.join("/")
        })
        this.setData({
          value:res.data
        })
      }
    })
  },
})
